package com.buobao.lambda;

public class LambdaSample {
    public static void main(String[] args) {
        //标准lambda表达式
        MathOperation operation = (Integer a,Integer b)-> Float.valueOf(a+b);
        System.out.println(operation.operate(1,2));
        MathOperation operation1 = (a,b)-> Float.valueOf(a-b);
        System.out.println(operation1.operate(4,1));
    }
}
